-- GENERATED SPELL FOR [Ethereal Wraith] --


function spell0_18394(pUnit, Event) --@Shadow Bolt Volley,n/a--
pUnit:FullCastSpellOnTarget(34934,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18394', 1500, 1)
end

function Sorts_18394(pUnit, Event)
local choix_sorts_18394 = math.random(0, 0)
if choix_sorts_18394 == 0 then
pUnit:RegisterEvent('spell0_18394', 1, 1)
end
end

function mob18394_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18394', math.random(1500, 3000), 1)
end

function mob18394_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18394_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18394_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18394, 1, 'mob18394_Action')
RegisterUnitEvent(18394, 2, 'mob18394_Leave')
RegisterUnitEvent(18394, 3, 'mob18394_Kill')
RegisterUnitEvent(18394, 4, 'mob18394_Die')
